package com.ruoyi.mes.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 成品库存信息对象 tb_finished_goods
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class FinishedGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存唯一标识 */
    private Long inventoryId;

    /** 产品ID，外键关联产品表 */
    @Excel(name = "产品ID，外键关联产品表")
    private Long productId;

    /** 库存量 */
    @Excel(name = "库存量")
    private BigDecimal stockQuantity;

    /** 库存位置 */
    @Excel(name = "库存位置")
    private String stockLocation;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inboundTime;

    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date outboundTime;

    public void setInventoryId(Long inventoryId) 
    {
        this.inventoryId = inventoryId;
    }

    public Long getInventoryId() 
    {
        return inventoryId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setStockQuantity(BigDecimal stockQuantity) 
    {
        this.stockQuantity = stockQuantity;
    }

    public BigDecimal getStockQuantity() 
    {
        return stockQuantity;
    }
    public void setStockLocation(String stockLocation) 
    {
        this.stockLocation = stockLocation;
    }

    public String getStockLocation() 
    {
        return stockLocation;
    }
    public void setInboundTime(Date inboundTime) 
    {
        this.inboundTime = inboundTime;
    }

    public Date getInboundTime() 
    {
        return inboundTime;
    }
    public void setOutboundTime(Date outboundTime) 
    {
        this.outboundTime = outboundTime;
    }

    public Date getOutboundTime() 
    {
        return outboundTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inventoryId", getInventoryId())
            .append("productId", getProductId())
            .append("stockQuantity", getStockQuantity())
            .append("stockLocation", getStockLocation())
            .append("inboundTime", getInboundTime())
            .append("outboundTime", getOutboundTime())
            .toString();
    }
}
